<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>信息补录tab页</title>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/common/common.js" type="text/javascript"></script>
    <link href="/webjars/miniui/css/demo.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/default.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div class="mini-toolbar" style="padding:2px;" align="right">
    <input name="priNum" id="priNum" class="mini-hidden" style="width: 100%" readonly />
    <input name="pristopold" id="pristopold" class="mini-hidden" style="width: 100%" readonly />
</div>
<div class="mini-tabs" style="width:100%;height: 100%" activeIndex="0" id="tabs" onbeforeactivechanged="onClickTo(e)">
    <div title="职业技能" id="zyjn" style="height: 80%;width: 100%" url="/azbj/yazgl/xxbl/zyjn/tab?1=1&priNum=${priNum!''}"></div>
    <#if "${localCode !''}"=='140000'>
        <div title="服刑信息变更"  id="jxjs" style="height: 100%;width: 100%" refreshOnClick="true"></div>
    <#else>
        <div title="减刑假释" id="jxjs" style="height: 100%;width: 100%"></div>
    </#if>
    <div title="出监、危险性评估" style="height: 100%;width: 100%"></div>
</div>

<script type="text/javascript">
    mini.parse();
    var priNum = mini.get("priNum");/*获取罪犯编号*/
    var tabs = mini.get("tabs");/*获取tabs页*/

    /**
     * 点击标签页做的动作
     * @param e
     */
    function onClickTo(e) {
        var tab = e.tab;
        var tabName = tab.title;
        tabs.reloadTab(tab);
        if ("减刑假释" == tabName) {
            tab.url = "/azbj/yazgl/xxbl/jxjs/tab?1=1" + "&priNum=${priNum!''}" + "&pristopold=${pristopold!''}";
        } else if ("出监、危险性评估" == tabName) {
            tab.url = "/azbj/yazgl/xxbl/wxxpg/tab?1=1&prinum=${priNum!''}";
            // 山西特殊功能
        } else if("服刑信息变更" == tabName){
            tab.url = "/azbj/yazgl/xxbl/fxbg?1=1"+ "&priNum=${priNum!''}"+"&pristopold=${pristopold!''}";
        }
    }
</script>
</body>
</html>